home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-01-30 | 3.8 KB | 131 lines | [TEXT/MPS ] |
- {
- Created: Friday, October 20, 1989 at 4:39 AM
- Folders.p
- Pascal Interface to the Macintosh Libraries
-
- Copyright Apple Computer, Inc. 1989-90
- All rights reserved
- }
-
-
- {$IFC UNDEFINED UsingIncludes}
- {$SETC UsingIncludes := 0}
- {$ENDC}
-
- {$IFC NOT UsingIncludes}
- UNIT Folders;
- INTERFACE
- {$ENDC}
-
- {$IFC UNDEFINED UsingFolders}
- {$SETC UsingFolders := 1}
-
- {$I+}
- {$SETC FoldersIncludes := UsingIncludes}
- {$SETC UsingIncludes := 1}
- {$IFC UNDEFINED UsingTypes}
- {$I $$Shell(PInterfaces)Types.p}
- {$ENDC}
- {$IFC UNDEFINED UsingFiles}
- {$I $$Shell(PInterfaces)Files.p}
- {$ENDC}
- {$SETC UsingIncludes := FoldersIncludes}
-
- CONST
- kOnSystemDisk = $8000;
-
- kCreateFolder = TRUE;
- kDontCreateFolder = FALSE;
-
- kSystemFolderType = 'macs'; { the system folder }
- kDesktopFolderType = 'desk'; { the desktop folder; objects in this folder show on the desktop }
- kTrashFolderType = 'trsh'; { the trash folder; objects in this folder show up in the trash }
- kWhereToEmptyTrashFolderType = 'empt'; { the “empty trash” folder; Finder starts emptying from here down }
-
- kPrintMonitorDocsFolderType = 'prnt'; { Print Monitor documents }
-
- kStartupFolderType = 'strt'; { Finder objects (applications, documents, DAs, aliases to …) to open at startup go here }
- kAppleMenuFolderType = 'amnu'; { Finder objects to put into the Apple menu go here }
- kControlPanelFolderType = 'ctrl'; { Control Panels go here (may contain INITs) }
- kExtensionFolderType = 'extn'; { Finder extensions go here }
-
- kPreferencesFolderType = 'pref'; { preferences for applications go here }
- kTemporaryFolderType = 'temp'; { temporary files go here (deleted periodically, but don’t rely on it) }
-
-
- FUNCTION FindFolder(vRefNum: INTEGER; folderType: OSType; createFolder: BOOLEAN;
- VAR foundVRefNum: INTEGER; VAR foundDirID: LONGINT): OSErr;
- INLINE $7000, $A823;
-
- {$ENDC} { UsingFolders }
-
- {$IFC NOT UsingIncludes}
- END.
- {$ENDC}
-
- {
- Created: Friday, October 20, 1989 at 4:39 AM
- Folders.p
- Pascal Interface to the Macintosh Libraries
-
- Copyright Apple Computer, Inc. 1989-90
- All rights reserved
- }
-
-
- {$IFC UNDEFINED UsingIncludes}
- {$SETC UsingIncludes := 0}
- {$ENDC}
-
- {$IFC NOT UsingIncludes}
- UNIT Folders;
- INTERFACE
- {$ENDC}
-
- {$IFC UNDEFINED UsingFolders}
- {$SETC UsingFolders := 1}
-
- {$I+}
- {$SETC FoldersIncludes := UsingIncludes}
- {$SETC UsingIncludes := 1}
- {$IFC UNDEFINED UsingTypes}
- {$I $$Shell(PInterfaces)Types.p}
- {$ENDC}
- {$IFC UNDEFINED UsingFiles}
- {$I $$Shell(PInterfaces)Files.p}
- {$ENDC}
- {$SETC UsingIncludes := FoldersIncludes}
-
- CONST
- kOnSystemDisk = $8000;
-
- kCreateFolder = TRUE;
- kDontCreateFolder = FALSE;
-
- kSystemFolderType = 'macs'; { the system folder }
- kDesktopFolderType = 'desk'; { the desktop folder; objects in this folder show on the desktop }
- kTrashFolderType = 'trsh'; { the trash folder; objects in this folder show up in the trash }
- kWhereToEmptyTrashFolderType = 'empt'; { the “empty trash” folder; Finder starts emptying from here down }
-
- kPrintMonitorDocsFolderType = 'prnt'; { Print Monitor documents }
-
- kStartupFolderType = 'strt'; { Finder objects (applications, documents, DAs, aliases to …) to open at startup go here }
- kAppleMenuFolderType = 'amnu'; { Finder objects to put into the Apple menu go here }
- kControlPanelFolderType = 'ctrl'; { Control Panels go here (may contain INITs) }
- kExtensionFolderType = 'extn'; { Finder extensions go here }
-
- kPreferencesFolderType = 'pref'; { preferences for applications go here }
- kTemporaryFolderType = 'temp'; { temporary files go here (deleted periodically, but don’t rely on it) }
-
-
- FUNCTION FindFolder(vRefNum: INTEGER; folderType: OSType; createFolder: BOOLEAN;
- VAR foundVRefNum: INTEGER; VAR foundDirID: LONGINT): OSErr;
- INLINE $7000, $A823;
-
- {$ENDC} { UsingFolders }
-
- {$IFC NOT UsingIncludes}
- END.
- {$ENDC}
-
-